package server.net;

import java.net.Socket;
import java.util.HashMap;
import java.util.Map;
import server.data.Customer;

/**
 *
 * @author Danon
 */
public abstract class Request {
    private Customer customer;
    private int id;
    
    private static int _id = 0;
    
    public Request() {
        this(null);
    }
    
    public Request(Customer c) {
        setCustomer(c);
        setId(_id++);
    }
    
    public final void setCustomer(Customer c) {
        customer = c;
    }
    
    public final Customer getCustomer() {
        return customer;
    }
    
    public final int getId() {
        return id;
    }
    
    public final void setId(int id) {
        this.id = id;
    }
}
